package com.zch.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zch.dao.MyActivityMapper;
import com.zch.dao.model.MyActivity;
import com.zch.dao.model.MyActivityExample;
import com.zch.daoEx.MyActivityMapperEx;
import com.zch.daoEx.model.MyActivityEx;

@Service
public class MyActivityService {
	@Autowired
	private MyActivityMapper myActivityMapper;
	@Autowired
    private MyActivityMapperEx myActivityMapperEx;
	public int countByExample(MyActivityExample example) {
		return this.myActivityMapper.countByExample(example);
	}

	public MyActivity selectByPrimaryKey(String id) {
		return this.myActivityMapper.selectByPrimaryKey(id);
	}

	public List<MyActivity> selectByExample(MyActivityExample example) {
		return this.myActivityMapper.selectByExample(example);
	}

	public int deleteByPrimaryKey(String id) {
		return this.myActivityMapper.deleteByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(MyActivity record) {
		return this.myActivityMapper.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(MyActivity record) {
		return this.myActivityMapper.updateByPrimaryKey(record);
	}

	public int deleteByExample(MyActivityExample example) {
		return this.myActivityMapper.deleteByExample(example);
	}

	public int updateByExampleSelective(MyActivity record, MyActivityExample example) {
		return this.myActivityMapper.updateByExampleSelective(record, example);
	}

	public int updateByExample(MyActivity record, MyActivityExample example) {
		return this.myActivityMapper.updateByExample(record, example);
	}

	public int insert(MyActivity record) {
		return this.myActivityMapper.insert(record);
	}

	public int insertSelective(MyActivity record) {
		return this.myActivityMapper.insertSelective(record);
	}

    public List<MyActivityEx> selectAppList(Map<String, Object> map) {
        return this.myActivityMapperEx.selectAppList(map);
    }

    public MyActivityEx selectDetail(Map<String, Object> map) {
        return this.myActivityMapperEx.selectDetail(map);
    }

    public List<MyActivityEx> selectJoinList(Map<String, Object> map) {
        return this.myActivityMapperEx.selectJoinList(map);
    }

}
